Skip to content

Added erf(x) Float64 Julia implementation#490

Closed
AhmedYKadah wants to merge 1 commit intoJuliaMath:masterfrom
AhmedYKadah:erf(x)-implementation
Closed

Added erf(x) Float64 Julia implementation#490
AhmedYKadah wants to merge 1 commit intoJuliaMath:masterfrom
AhmedYKadah:erf(x)-implementation

Conversation

@AhmedYKadah
Copy link
Contributor

@AhmedYKadah AhmedYKadah commented Mar 31, 2025

Faster than current wrapper function call (including Float32 function call).
Uses algorithm based on https://github.com/ARM-software/optimized-routines/blob/master/math/erf.c

Comment on lines +28 to +29
erfc(x::Float64) = ccall((erfc, libopenlibm), Float64, (Float64,), x)
erfc(x::Float32) = ccall((erfcf, libopenlibm), Float32, (Float32,), x)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
erfc(x::Float64) = ccall((erfc, libopenlibm), Float64, (Float64,), x)
erfc(x::Float32) = ccall((erfcf, libopenlibm), Float32, (Float32,), x)
erfc(x::Float64) = ccall((:erfc, libopenlibm), Float64, (Float64,), x)
erfc(x::Float32) = ccall((:erfcf, libopenlibm), Float32, (Float32,), x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants